import numpy as np

import matplotlib.pyplot as plt


def sigmoid(x):
    return 1 / (1 + np.exp(-x))


x = np.linspace(-100, 100, 1000000)
y = [np.tanh(i) for i in x]

plt.figure(figsize=(4, 4), dpi=100)
plt.plot(x, y)

plt.show()
